package com.qf.mpswaggershiro.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.qf.mpswaggershiro.product.entity.ProductParams;
import com.qf.mpswaggershiro.product.mapper.ProductParamsMapper;
import com.qf.mpswaggershiro.product.service.IProductParamsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 商品参数  服务实现类
 * </p>
 *
 * @author cui
 * @since 2023-02-14
 */
@Service
public class ProductParamsServiceImpl extends ServiceImpl<ProductParamsMapper, ProductParams> implements IProductParamsService {

@Transactional(propagation = Propagation.SUPPORTS)
    @Override
    public ProductParams productParams(Integer id) {

    ProductParams product_id = getOne(new QueryWrapper<ProductParams>().eq("product_id", id));


    return product_id;
    }
}
